package com.chexiehui.jc.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Author: SongJun
 * CreateTime: 2020/5/11 0011
 * Company: 贵州华创云科技有限公司
 * Description: 用户信息
 */
public class UserInfo implements Serializable {

    private String Id;
    private String Name;
    private String Remark;
    private String Photo;
    private String Tel;
    private String BgPhoto;
    private boolean IsAuth;
    private int PostCount;
    private int FollowCount;
    private int FansCount;
    private int LoveCount;
    private int NewsCount;
    private int CarLoanLimit;
    private int MortgageLimit;
    private int CarAuth;//车商认证状态（0审核中1审核通过2审核不通过3未申请） ,
    private boolean IsFollow;
    private List<CarInfo> Cars;

    public String getId() {
        return Id == null ? "" : Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getName() {
        return Name == null ? "" : Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getRemark() {
        return Remark == null ? "" : Remark;
    }

    public void setRemark(String remark) {
        Remark = remark;
    }

    public String getPhoto() {
        return Photo == null ? "" : Photo;
    }

    public void setPhoto(String photo) {
        Photo = photo;
    }

    public boolean isAuth() {
        return IsAuth;
    }

    public void setAuth(boolean auth) {
        IsAuth = auth;
    }

    public int getPostCount() {
        return PostCount;
    }

    public void setPostCount(int postCount) {
        PostCount = postCount;
    }

    public int getFollowCount() {
        return FollowCount;
    }

    public void setFollowCount(int followCount) {
        FollowCount = followCount;
    }

    public int getFansCount() {
        return FansCount;
    }

    public void setFansCount(int fansCount) {
        FansCount = fansCount;
    }

    public int getNewsCount() {
        return NewsCount;
    }

    public void setNewsCount(int newsCount) {
        NewsCount = newsCount;
    }

    public int getCarLoanLimit() {
        return CarLoanLimit;
    }

    public void setCarLoanLimit(int carLoanLimit) {
        CarLoanLimit = carLoanLimit;
    }

    public int getMortgageLimit() {
        return MortgageLimit;
    }

    public void setMortgageLimit(int mortgageLimit) {
        MortgageLimit = mortgageLimit;
    }

    public boolean isFollow() {
        return IsFollow;
    }

    public void setFollow(boolean follow) {
        IsFollow = follow;
    }

    public List<CarInfo> getCars() {
        return Cars == null ? Cars = new ArrayList<>() : Cars;
    }

    public void setCars(List<CarInfo> cars) {
        Cars = cars;
    }

    public String getTel() {
        return Tel == null ? "" : Tel;
    }

    public void setTel(String tel) {
        Tel = tel;
    }

    public String getBgPhoto() {
        return BgPhoto == null ? "" : BgPhoto;
    }

    public void setBgPhoto(String bgPhoto) {
        BgPhoto = bgPhoto;
    }

    public int getLoveCount() {
        return LoveCount;
    }

    public void setLoveCount(int loveCount) {
        LoveCount = loveCount;
    }

    public int getCarAuth() {
        return CarAuth;
    }
    public String getCarAuthStr() {
        return CarAuth == 0 ? "审核中" : CarAuth == 1 ? "审核通过" : CarAuth == 2 ? "审核不通过" : CarAuth == 3 ? "未申请" : "";
    }

    public void setCarAuth(int carAuth) {
        CarAuth = carAuth;
    }
}
